﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@ViewBag.Title</title>
    <meta name="keyword" content="@ViewBag.Keyword" />
    <meta name="description" content="@ViewBag.KeywordMeta" />
    <link href="/Content/Base-theme/reset.css" rel="stylesheet" type="text/css" />
    <link href="/Content/Base-theme/jquery-ui/jquery.ui.all.css" rel="stylesheet"
        type="text/css" />
    <link href="/Content/Base-theme/jquery-ui/jquery.ui.dialog.css" rel="stylesheet"
        type="text/css" />
    <link href="/Content/Frontend/rs-v10/css/css.css" rel="stylesheet" type="text/css" />
    <link href="/Content/Frontend/rs-v10/css/RsPager.css" rel="stylesheet" type="text/css" />
    <link href="/Content/Frontend/rs-v10/js/flexscroll/flexcrollstyles.css" rel="stylesheet"
        type="text/css" />
    <link href="/Content/plugins/alert/alert.css" rel="stylesheet" type="text/css" />
    <link href="/Content/Frontend/rs-v10/css/customjAlert.css" rel="stylesheet"
        type="text/css" />
    <link rel="icon"href="/Content/Frontend/rs-v10/images/rs.ico" />

    <script src="/Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui-1.8.17.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    <script src="/Content/Frontend/rs-v10/js/flexscroll/flexcroll.js" type="text/javascript"></script>
    <script src="/Content/Frontend/rs-v10/js/Ineed.js" type="text/javascript"></script>
    <script src="/Content/Frontend/rs-v10/js/news.js" type="text/javascript"></script>
    <script src="/Content/Frontend/rs-v10/js/login.js" type="text/javascript"></script>
    <script src="/Content/plugins/alert/jquery.alerts.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {

            // click login
            $('#login-tab').click(function () {
                $('#panel-login').slideToggle()
                return false;
            })
            // effect service
            $('.content-service').hover(function () {
                $(this).find('.bar-service').stop(true, true).animate({ height: parseInt($(this).height()) });
            }, function () {
                $(this).find('.bar-service').stop(true, true).animate({ height: '10px' });
            })

            $('.content-service').hover(function () {
                $(this).stop(true, true).animate({ 'margin-left': '0px' }, 'fast');
            }, function () {
                $(this).stop(true, true).animate({ 'margin-left': '15px' }, 'fast');
            })
            // installed i need
            ObjectIneed.installed();
            // installed news

        })
        function showMessage(message) {
            if (typeof message == 'string') {
                if ($.trim(message) != "") {
                    $('#loading-panel').css('display', 'none');
                    if (message.indexOf('[msg]') == 0) {
                        message = message.substring(5);
                    }
                    var s = message.split('[msg]');
                    for (i in s) {
                        alert(s[i]);
                    }
                }
            }
            if (typeof message == 'object') {
                if (message.tag) {
                    showMessage($('#message-list').find('[tag=' + message.tag + ']').text());
                }
            }
        }
        $(window).load(function () {
            showMessage('@Html.Action("GetMessage", "Base")');
        });
    </script>
</head>
<body>
    <div id="wrap">
        @Html.Action("PanelLogin", "Account")
        <div id="wrap-head">
            <a id="logo" href="http://redsand.vn" title="redsand.vn">
                <img alt="redsand.vn" src="@string.Format("/Content/Frontend/rs-v10/images/logo-{0}.png", RedSand.Web.Language.RsLanguage.LanguageCode)" /></a>
            @Html.Partial("_Menu")
            @if (User.Identity.IsAuthenticated)
            {
                <div id="logout-tab">
                    <span> @Html.Translate("Welcome","Account") : @User.Identity.Name </span>
                    | <span> @Ajax.ActionLink(Html.Translate("Logout", "Account").ToString(), "PanelLogout", "Account", new AjaxOptions()) </span>
                </div>
            }
            else
            {
                <a id="login-tab" href="#" title="Đăng ký nick">@Html.Translate("Login", "Account") | @Html.Translate("Register", "Account")</a>
            }
        </div>
        <div id="wrap-main-content" class="clearfix">
            @RenderBody()
        </div>
        <div id="wrap-footer" class="clearfix">
            <ul class="clearfix">
                <li><a href="/@RedSand.Web.Language.RsLanguage.LanguageCode/service/development-software" title="@Html.Translate("Software_development", "Menu")">@Html.Translate("Software_development", "Menu")</a> </li>
                <li><a href="/@RedSand.Web.Language.RsLanguage.LanguageCode/service/design-website" title="@Html.Translate("Design_website", "Menu")">@Html.Translate("Design_website", "Menu")</a> </li>
                <li><a href="/@RedSand.Web.Language.RsLanguage.LanguageCode/service/seo" title="@Html.Translate("Seo", "Menu")">@Html.Translate("Seo", "Menu")</a> </li>
                <li><a href="/@RedSand.Web.Language.RsLanguage.LanguageCode/service/education-programmer" title="@Html.Translate("Education_programmers", "Menu")">@Html.Translate("Education_programmers", "Menu")</a> </li>
            </ul>
            <div style="padding-top: 5px; padding-left: 7px;">
                © Bản quyền thuộc về công ty cổ phần phát triển công nghệ redsand.vn</div>
        </div>
    </div>
</body>
</html>
